﻿using System.Data;
using MyFloridaHouse.libSvDTO;
using MyFloridaHouse.libSvUtilities;
using MyFloridaHouse.libSvCommonUtilities;


namespace MyFloridaHouse.DataAccess.Extensions
{
    //todo: Remove unused code. Delete this when districtShapeAdd and districtShapeSubtract are deleted
	/// <summary>
	/// [Obsolete] DistrictShapeDTODataContract
	/// </summary>
    public static class DistrictShapeDTODataContract
    {
		//Todo: Remove unused code.
		/// <summary>
		/// [Obsolete] DataContract.
		/// </summary>
		/// <param name="rdr">The RDR.</param>
		/// <returns></returns>
        public static DistrictShapeDTO DataContract(IDataReader rdr)
        {
            var newItem = new DistrictShapeDTO
                          	{
                          		districtShape = CompressionManager.Compress(rdr["retWkt"].ToString())
                          	};
			return newItem;
        }
    }
}
